<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻展示</title>
    <script src="{{ url_for('static', filename='jquery.slim.min.js') }}"></script>

    <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}">

</head>
<body>
<p>------{{ message }}--------</p>
<table class="table">
    <thead>
    <tr>
        {% for head in table_head %}
        <th scope="col">{{ head }}</th>
        {% endfor %}
    </tr>
    </thead>
    <tbody>
    {% for data in data_list %}
    <tr>
        <th scope="row">{{ loop.index }}</th>
        <td>
            <a href="{{ data.url }}" title="{{ data.title }}" target="_blank">{{ data.title }}</a>
        </td>
        <td>{{ data.article_type }}</td>
        <td>{{ data.source }}</td>
    </tr>
    {% endfor %}
    </tbody>
</table>
</body>
</html>

